//
//  JYTRegisteredHandler.h
//  JYT_IOS
//
//  Created by nxa-tankeke on 16/11/30.
//  Copyright © 2016年 com.yuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JYTHttpClient.h"

@interface JYTRegisteredHandler : NSObject

+ (JYTRegisteredHandler *) shared;

//获取验证码
- (void) getPinCodeWithPhone:(NSString *)phoneNum withHandler:(void (^) (NSString *userName)) handler;

//验证验证码
- (void) checkPinCodeWithPhone:(NSString *)phoneNum pinCode:(NSString *)pinCode withHandler:(void (^) (NSString *message, NSString *code)) handler;

- (void) getCenterPinCodeWithPhone:(NSString *)phoneNum withHandler:(void (^) (NSString *code, NSString *userName)) handler;

- (void) registerWithParams:(NSDictionary *)params completionHandler:(void (^)(BOOL succ)) handler;
@end
